﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="GMDatePicker" Namespace="GrayMatterSoft" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>在线文件管理</title>
        <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="images/StyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../css/ecrm03.css" rel="stylesheet" type="text/css" />
    <script src="../js/jquery0905.js" type="text/javascript"></script>
    <script src="../js/jqModal.js" type="text/javascript"></script>  
    <script type="text/javascript" language="javascript">  
    $(function() {
        $("#checkedAll").click(function() { 
            if ($(this).attr("checked") == true) { // 全选
                    $("input[@type='checkbox']").each(function() {
                    $(this).attr("checked", true);
                    });
                } else { // 取消全选
                    $("input[@type='checkbox']").each(function() {
                    $(this).attr("checked", false);
                });
            }
        });
    });
    
    $().ready(function() {
        $('#divCreate').jqm({trigger: '#create'});
        $('#divRename').jqm({trigger: '#rename'});
        $('#divDelete').jqm({trigger: '#delete'});
        $('#divUpload').jqm({trigger: '#upload'});
        $('#divCopy').jqm({trigger: '#copy'});
        $('#divPaste').jqm({trigger: '#paste'});
        $('#divCut').jqm({trigger: '#cut'});
        $('#divKeyword').jqm({trigger: '#addkeyword'}); 
        $('#divRemark').jqm({trigger:'#remark'});
    });
    function checkfile()
    {
        var ext=$('#FileUpload1').val().split(".")[$('#FileUpload1').val().split(".").length-1];
        var notstr="bat,com,exe";
        if(notstr.indexOf(ext) !=-1)
        {
            alert("不能上传可执行文件!");
            return false;
        }
        return true;
    }
    function checksel()
    {
        var count=$("input[@type='checkbox']")
    }
    </script>
</head>
<body>
<form id="form1" runat="server">
<table width =950px align="center">
            <tr>
                <td style="width: 15px; height: 47px; background-color: #ffffff" valign="middle"></td>
                
                <td  style="background-color:#0075B0; height :47px; width: 950px;" valign="middle">
                    <DIV style="text-align: left ; font-family:Arial; text-align:left;" >
                        <span style=" font-family:'Arial Black'; color:#FFFFFF; font-size:16pt;">
                            <b>&nbsp;&nbsp;&nbsp;&nbsp;MagSpace
                                
                            </b>
                        </span>
                     </DIV>
                 </td>
                 
                 <td style="background-color:#0075B0; height :47px; width: 190px;" valign="middle" align="right">
                    <DIV style="text-align: left ; font-family:Arial; text-align:left;" >
                        <span style=" font-family:'Arial Black'; color:#FFFFFF; font-size:16pt;">
                             <span class="pl"><asp:Literal ID="userstatus1" runat="server"></asp:Literal>&nbsp;&nbsp;<asp:Literal ID="userstatus2" runat="server"></asp:Literal></span>
                             </span>
                     </DIV>
                 </td>
                 
                <td style="width: 15px; height: 47px; background-color: #ffffff" valign="middle"></td>
                    
            </tr>
        </table>
        <br />
        
        <table width=900 align="center">
            <tr>
                <td style="text-align:center" id="tab01" class="titletab02"><a href="../index.aspx">首页</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="tab03" class="titletab02"><a href="../my_ecrm.aspx">我的名片夹</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td1" class="titletab02"><a href="../my_givelist.aspx">我的赠刊名录</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td2" class="titletab02"><a href="../my_plan.aspx">我的周计划</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td3" class="titletab02"><a href="../easybbs.aspx">员工交流区</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td4" class="titletab02"><a href="../employee2.aspx">员工联系表</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td6" class="titletab02"><a href="../vote/vote.aspx">投票</a></td>
                <td class="titletab03">&nbsp;</td>
                <td style="text-align:center" id="Td5" class="titletab01"><a href="../webdisk/default.aspx">网盘</a></td>
                <td class="titletab04">&nbsp;</td>
            </tr>
        </table>
        <br />
<table width=900 border="0" cellpadding="0" cellspacing="0" align="center">
            <tr>
                <td style="font-weight: bold; font-size: 10pt;">
                    <%--<div id="nav"><a href="../index.aspx"><span>首页</span></a><a href="../my_ecrm.aspx">我的名片夹</a><a href="../my_givelist.aspx"><span>我的赠刊名录</span></a><a href="../my_plan.aspx"><span>我的周计划</span></a><a href="../easybbs.aspx"><span>员工交流区</span></a><a href="../employee2.aspx"><span>员工联系表</span></a><a class="now" href="default.aspx"><span>网盘&nbsp;&nbsp;</span></a></div>
                    <div class="clear"></div><div id="status"><div id="subnav"></div><span class="pl"><asp:Literal ID="userstatus1" runat="server"></asp:Literal><asp:Literal ID="userstatus2" runat="server"></asp:Literal></span></div>--%>
                </td>
            </tr>
            <tr><td>
   <div id="menu">
    <ul>
        <li><a href="Default.aspx"><img title="刷新" alt="刷新" src="images/ico/refresh.gif" /> 刷新</a></li>
        <li id='li1' runat="server" ><a href="javascript:void(0);" id="create"><img title="新建" alt="新建" src="images/ico/folder_new.gif" /> 新建文件夹</a></li>
        <li id='li2' runat="server"><a href="javascript:void(0);" id="addkeyword"><img title="新建" alt="新建" src="images/ico/file_new.gif" /> 添加关键词</a></li>
        <li id='li3' runat="server"><a href="javascript:void(0);" id="cut"><img title="剪切" alt="剪切" src="images/ico/cut.gif" /> 剪切</a></li>
        <li id='li4' runat="server"><a href="javascript:void(0);" id="copy"><img title="复制" alt="复制" src="images/ico/copy.gif" /> 复制</a></li>
        <li id='li5' runat="server"><a href="javascript:void(0);" id="paste"><img title="粘贴" alt="粘贴" src="images/ico/paste.gif" /> 粘贴</a></li>
        <li id='li6' runat="server"><a href="javascript:void(0);" id="rename"><img title="重命名" alt="重命名" src="images/ico/rename.gif" /> 重命名</a></li>
        <li id='li7' runat="server"><a href="javascript:void(0);" id="delete"><img title="删除" alt="删除" src="images/ico/delete.gif" /> 删除</a></li>
        <li id='li8' runat="server"><a href="javascript:void(0);" id="upload"><img title="上传" alt="上传" src="images/ico/up.gif" /> 上传</a></li>
        <li id='li9' runat="server"><a href="javascript:void(0);" id="remark"><img title="备注" alt="备注" src="images/ico/remark.gif" />备注</a></li>
        <li id='li10' runat ="server" ><a href ="RecoverFile.aspx" id='recover'><img title="回收站" alt='回收站' src='images/ico/recycler.gif'>回收站</a></li>
    </ul>
   </div>
   
   <div id="divCreate" class="jqmWindow" style="display:none;">
       <h3>新建文件夹</h3>
       名称：<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
       <asp:Button ID="btnCreateFolder" runat="server" Text="确定" OnClick="btnCreateFolder_Click" />
       <asp:Button ID="btnPanel2Cancel" runat="server" Text="取消" OnClick="Cancel"/><br />
   </div>
   
      <div id="divKeyword" class="jqmWindow" style="display:none;">
       <h3>添加关键词</h3>
       名称：<asp:TextBox ID="TextBox4" runat="server" ></asp:TextBox>
       <asp:Button ID="btnAddKeyWord" runat="server" Text="确定" OnClick="btnAddKeyWord_Click" />
       <asp:Button ID="Button4" runat="server" Text="取消" OnClick="Cancel" /><br />
   </div>
   
   <div id="divUpload" class="jqmWindow" style="display:none;">
       <h3>文件上传</h3>
       选择文件：<asp:FileUpload ID="FileUpload1" runat="server" />
       <asp:Button ID="btnUpload" runat="server" Text="确定" OnClientClick="return checkfile();"  OnClick="btnUpload_Click"/>
       <asp:Button ID="btnPanel3Cancel" runat="server" Text="取消" OnClick="Cancel" />
   </div>
   
   <div id="divRename" class="jqmWindow" style="display:none;">
       <h3>重命名</h3>
       新名称：
       <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
       <asp:Button ID="btnRename" runat="server" Text="确定" OnClick="btnRename_Click" />
       <asp:Button ID="btnPanel4Cancel" runat="server" Text="取消" OnClick="Cancel" />
   </div>
   
   <div id="divRemark" class="jqmWindow" style="display:none;">
       <h3>添加备注</h3>
       备注：
       <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
       <asp:Button ID="btnRemark" runat="server" Text="确定" OnClick="btnRemark_Click" />
       <asp:Button ID="btnPanel5Cancel" runat="server" Text="取消" OnClick="Cancel" />
   </div>
   
   
   
   <div id="divDelete" class="jqmWindow" style="display:none;">
       <h3>删除文件</h3>
       <p>确定删除选中的文件或文件夹吗？<br /><br />
       <asp:Button ID="btnDelete" runat="server" Text="确定" OnClick="btnDelete_Click" />
       <asp:Button ID="Button2" runat="server" Text="取消" OnClick="Cancel" /></p>
   </div>
   
   <div id="divCopy" class="jqmWindow" style="display:none;">
       <h3>复制文件</h3>
       <p>确定复制选中的文件或文件夹吗？<br /><br />
       <asp:Button ID="btnCopy" runat="server" Text="确定" OnClick="btnCopy_Click" />
       <asp:Button ID="Button3" runat="server" Text="取消" OnClick="Cancel"/></p>
   </div>
   
   <div id="divPaste" class="jqmWindow" style="display:none;">
       <h3>粘贴文件</h3>
       <p>确定粘贴选中的文件或文件夹吗？<br /><br />
       <asp:Button ID="btnPaste" runat="server" Text="确定" OnClick="btnPaste_Click" />
       <asp:Button ID="Button5" runat="server" Text="取消" OnClick="Cancel"/></p>
   </div>
   
   <div id="divCut" class="jqmWindow" style="display:none;">
       <h3>剪切文件</h3>
       <p>确定剪切选中的文件或文件夹吗？<br /><br />
       <asp:Button ID="btnCut" runat="server" Text="确定" OnClick="btnCut_Click" />
       <asp:Button ID="Button7" runat="server" Text="取消" OnClick="Cancel"/></p>
   </div>
  

   <div style="padding:5px;"><strong>路径: </strong><asp:Label ID="lblCurrentPath" Font-Bold="true" runat="server" Font-Names="Verdana" Font-Size="12px" Visible='false'></asp:Label><asp:Label ID="labpath" Font-Bold="true" runat="server" Font-Names="Verdana" Font-Size="12px"></asp:Label>
       <div id='divDate' runat="server" visible="false"  >按日期过滤:<asp:DropDownList ID='ddldate' runat="server" ></asp:DropDownList> <asp:Button ID="btnsel" runat="server" Text ="过滤" OnClick="btnsel_Click" /></div>
   </div>

    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="100%" OnRowCommand="GridView1_RowCommand" Font-Names="Verdana" Font-Size="12px" OnRowDataBound="GridView1_RowDataBound" CellPadding="3" BackColor="White" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="1px">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="CheckBox1" runat="server" />
                    </ItemTemplate>
                    <HeaderTemplate>
                        <input type="checkbox" name="checkedAll" id="checkedAll"/>
                    </HeaderTemplate>
                    <ItemStyle Width="3%" Wrap="False" HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="名称">
                    <EditItemTemplate>
                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("Name") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("FullName") %>' Text='<%# Eval("Name") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="KeyWord" HeaderText="关键词" >
                    <ItemStyle Width="12%" Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="CreationDate" HeaderText="创建日期" >
                    <ItemStyle Width="12%" Wrap="False" />
                </asp:BoundField>
                <asp:BoundField DataField="Size" HeaderText="大小" DataFormatString="{0} KB" >
                    <ItemStyle HorizontalAlign="Right" Width="5%" Wrap="False" />
                </asp:BoundField>
            </Columns>
            <FooterStyle BackColor="White" ForeColor="#000066" />
            <RowStyle ForeColor="#000066" />
            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        </asp:GridView>
    </div>
    <br />
        <div style="border-bottom: darkgray 1px solid;"></div>
        <span class="bottomfont">SEEC&copy;2008-2009 汽车中国</span>
   </td>
   </tr>
   </table>
   
</form>
</body>
</html>